import axios from "@/utils/request";

export function addAssistant(params){
    return axios({
        method:"post",
        url:"/assistant",
        data:params
    })
}

export function deleteAssistant(params){
    return axios({
        method:"delete",
        url:"/assistant",
        data:params
    })
}

export function updateAssistant(params){
    return axios({
        method:"put",
        url:"/assistant",
        data:params
    })
}

export function selectAssistant(params){
    return axios({
        method:"get",
        url:"/assistant",
        params: {
            pageNum:params.pageNum,
            pageSize:params.pageSize,
            search:params.search,
        }
    })
}

export function loginAssistant(params){
    return axios({
        method:"post",
        url:"/assistant/login",
        data: params
    })
}

export function logoutAssistant(params){
    return axios({
        method:"post",
        url:"/assistant/logout",
        data: params
    })
}